import datetime
users = [
        ['fd','123456'],
        ['xzh','45678']
]

count = 0
today = datetime.datetime.today()
while count<3:
    name_input = input("请输入姓名：").strip() #用户名去掉空格
    password_input = input("请输入密码:").strip() #密码去掉空格
    input_list = [name_input,password_input] #将用户名，密码组装成数组

    if len(name_input) ==0 or len(password_input) == 0:
        print("用户名密码不能为空")
        count = count + 1
        continue
    elif input_list in users:
        print("登录成功，今天的日期是{today}".format(today=today))
        break
    else:
        print("账号/密码错误，请重新输入")
        count = count + 1
        continue
else:
    print("次数超限，账户已锁定，请24小时候再来登录")


